﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Mail;
using System.Net;

namespace DearLee.Toolkit.Web {

  public class EmailHelper {

    public bool Sent(MailAddressCollection mailAddressCollection, MailAddress mailAddress, string subject, string body) {

      //SmtpClient smtpClient;
      //MailMessage mailMessage;
      
      //mailMessage = new MailMessage {
      //  From = mailAddress,
      //  Subject = subject,
      //  Body = body,
      //  IsBodyHtml = true
      //};

      //foreach (MailAddress item in mailAddressCollection) {
      //  mailMessage.To.Add(item);
      //}
      
      //smtpClient.Credentials = new NetworkCredential("xixifusi@gmail.com", "123456", "");
      //smtpClient.Host = "smtp.gmail.com";
      //smtpClient.Port = 587;
      //smtpClient.EnableSsl = true;
      //smtpClient.Send(mailMessage);

      return false;
    }
  }
}
